import { request } from '@vipl520/utils'
const path = '/gs_gold/admin.video/'

export function getVideoByIds(ids, source) {
  return request(
    {
      url: '/gs_gold/app.video/getVideoByIds',
      method: 'post',
      data: { ids, source }
    },
    {
      repeat_request_cancel: false
    }
  )
}

export function getDiy() {
  return request({
    url: path + 'getDiy',
    method: 'post',
    data: {}
  })
}
export function setDiy(diyData) {
  return request(
    {
      url: path + 'setDiy',
      method: 'post',
      data: { diyData }
    },
    {
      code_success_show: true
    }
  )
}
